package com.example.zhaojianxu.signin.securities.http

import retrofit2.Call
import retrofit2.http.POST
import retrofit2.http.Query

/**
 * create by @zhaojianxu on 2019/2/17
 */
interface SecuritiesApi {

    @POST("/CommonServer/securitiesBuy")
    fun postQueryBuy(): Call<MutableList<BuyEntity>>

    @POST("/CommonServer/securitiesSell")
    fun postQuerySell(@Query("uid") uid: Int): Call<MutableList<SellEntity>>

    @POST("/CommonServer/securitiesBuyBuy")
    fun postBuy(@Query("uid") uid: Int, @Query("bid") bid: Int, @Query("number") number: Int): Call<String>

    @POST("/CommonServer/securitiesSellSell")
    fun postSell(@Query("uid") uid: Int, @Query("sid") sid: Int, @Query("bid") bid: Int, @Query("number") number: Int): Call<String>
}